﻿@using BonjourQuotation.UI.Models.AccountModel
@model LoginViewModel


@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
    @Scripts.Render("~/Scripts/UIScript/Manage/Account.js")
}
<div class="container">
    @using (@Html.BeginForm("LoginUser", "Account", FormMethod.Post, new { @class = "form-horizontal", id = "LoginForm" }))
{
    <div id="LoginFormDiv">
        <div class="Lines760"></div>
        <div id="ErrorMessagesDiv" style="margin: auto;width: 760px;height: 30px;">
            <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
            @if (Model.Message != null)
            {
                @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
            }
        </div>

        <div class="ElementsPaddingRight30">
            <div class="UserNameDiv">
                @Html.TextBoxFor(model => Model.UserName, new { id = "username", @class = "username Required ElementsForValidation", placeholder = "Username" })
            </div>
        </div>
        <div class="ElementsPaddingRight30">
            <div class="PasswordDiv">
                @Html.PasswordFor(model => Model.Password, new { id = "password", @class = "password Required ElementsForValidation", placeholder = "Password" })
            </div>
        </div>
        <div class="Lines760" id="passwordLines"></div>
            <div id="LoginBtnDiv">
                <button type="submit" class="btn14" id="LoginBtn">Sign in</button>
            </div>
        </div>
}
</div>